package com.icinfo.cloud.provider.punish.config.mapper;

import com.icinfo.cloud.provider.punish.config.model.ConfigOrgRegulatoryDiscretionRule;
import com.icinfo.cloud.provider.punish.config.vo.ConfigOrgRegulatoryDiscretionRuleCountVo;
import com.icinfo.framework.mybatis.mapper.common.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 *
 * @author HKxxx
 * @date 2024/1/31 15:14
 */
public interface ConfigOrgRegulatoryDiscretionRuleMapper extends Mapper<ConfigOrgRegulatoryDiscretionRule> {
    /**
     * 批量新增
     */
    void insertBatch(@Param("ruleList") List<ConfigOrgRegulatoryDiscretionRule> ruleList);

    /**
     * 根据部门编码和唯一事项id集合 查询  违法情形总数 简易/普通程序 个人/单位违法情形 数量分别统计表
     */
    List<ConfigOrgRegulatoryDiscretionRuleCountVo> getCountsByRegulatoryCatalogId(@Param("orgCode") String orgCode, @Param("catalogIds") List<String> catalogIds);
}